package org.itheima.service.impl;

import org.itheima.mapper.WarehouseMapper;
import org.itheima.pojo.Warehouse;
import org.itheima.service.WarehouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class WarehouseServiceImpl implements WarehouseService {

    @Autowired
    private WarehouseMapper warehouseMapper;


    @Override
    public List<Map<String, Object>> findByTitle(String title) {
        return warehouseMapper.findByTitle(title);  // 使用 List<Warehouse>
    }

    @Override
    public List<Map<String, Object>> HotItems(String numberOfComments) {
        return warehouseMapper.HotItems(numberOfComments);
    }

    @Override
    public List<Map<String, Object>> findAll() {
        return warehouseMapper.findAll();
    }

    @Override
    public void chaRuSouSuoJiLu(int user_id, String researchData) {
        warehouseMapper.chaRuSouSuoJiLu(user_id,researchData);
    }

    @Override
    public List<Map<String, Object>> jingdongdiannaoshuju(String title) {
        return warehouseMapper.jingdongdiannaoshuju(title);
    }

    @Override
    public List<Map<String, Object>> jingdongdianzishoubiaoshuju(String title) {
        return warehouseMapper.jingdongdianzishoubiaoshuju(title);
    }

    @Override
    public List<Map<String, Object>> jingdongerjishuju(String title) {
        return warehouseMapper.jingdongerjishuju(title);
    }

    @Override
    public List<Map<String, Object>> jingdongjianpanshuju(String title) {
        return warehouseMapper.jingdongjianpanshuju(title);
    }

    @Override
    public List<Map<String, Object>> jingdongpingbanshuju(String title) {
        return warehouseMapper.jingdongpingbanshuju(title);
    }

    @Override
    public List<Map<String, Object>> jingdongshoujishuju(String title) {
        return warehouseMapper.jingdongshoujishuju(title);
    }

    @Override
    public List<Map<String, Object>> jingdongshubiaoshuju(String title) {
        return warehouseMapper.jingdongshubiaoshuju(title);
    }

    @Override
    public List<Map<String, Object>> taobaodiannaoshuju(String title) {
        return warehouseMapper.taobaodiannaoshuju(title);
    }

    @Override
    public List<Map<String, Object>> taobaodianzishoubiaoshuju(String title) {
        return warehouseMapper.taobaodianzishoubiaoshuju(title);
    }

    @Override
    public List<Map<String, Object>> taobaoerjishuju(String title) {
        return warehouseMapper.taobaoerjishuju(title);
    }

    @Override
    public List<Map<String, Object>> taobaojianpanshuju(String title) {
        return warehouseMapper.taobaojianpanshuju(title);
    }

    @Override
    public List<Map<String, Object>> taobaopingbanshuju(String title) {
        return warehouseMapper.taobaopingbanshuju(title);
    }

    @Override
    public List<Map<String, Object>> taobaoshoujishuju(String title) {
        return warehouseMapper.taobaoshoujishuju(title);
    }

    @Override
    public List<Map<String, Object>> taobaoshubiaoshuju(String title) {
        return warehouseMapper.taobaoshubiaoshuju(title);
    }


}
